package com.yikome.order.exportDTO;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

@Data
public class ExportOrderDTO implements Serializable {

	private static final long serialVersionUID = -4988647551905683909L;

	@Excel(name = "订单编号", orderNum = "1", width = 15, needMerge = true)
	private String code ; 
	@Excel(name = "支付方式", orderNum = "2", replace = { "COD_1", "STRIPE_2" }, width = 15, needMerge = true)
	private Integer payment ; 
	@Excel(name = "订单总价", orderNum = "3", width = 15, needMerge = true)
	private BigDecimal price ; 
	@Excel(name = "运费", orderNum = "4", width = 15, needMerge = true)
	private BigDecimal freight ;  
	@Excel(name = "用户留言", orderNum = "5", width = 15, needMerge = true)
	private String remark ; 
	@Excel(name = "订单状态", orderNum = "6", replace = { "拒收_-20", "取消_-10", "待付款_-5", "待审核_0", "备货中_10", "配货中_20", "运输中_30", "签收_40" }, width = 15, needMerge = true)
	private Integer status ; 
	@Excel(name = "币种", orderNum = "7", width = 15, needMerge = true)
	private String currency ; 
	@Excel(name = "收件人", orderNum = "8", width = 15, needMerge = true)
	private String consignee ; 
	@Excel(name = "电话", orderNum = "9", width = 15, needMerge = true)
	private String tel ;  
	@Excel(name = "城市", orderNum = "10", width = 15, needMerge = true)
	private String city ; 
	@Excel(name = "区域", orderNum = "11", width = 15, needMerge = true)
	private String district ; 
	@Excel(name = "地址详情", orderNum = "12", width = 15, needMerge = true)
	private String details ;
	@Excel(name = "下单时间", orderNum = "13", width = 15, needMerge = true)
	private Date createdAt ;
	@Excel(name = "商城", orderNum = "14", width = 15, needMerge = true)
	private String shopName ;
	
	@ExcelCollection(name = "订单明细", orderNum = "15")
    private List<ExportOrderProductDTO> exportOrderProductDTOs;
}
